#include "client_send.h"

string network::client_send::get_string()
{
	create_open_object("client");
	create_close_object("client");
	create_attrib("name", _client->get_name());

	string rw = get_header();
	list<model::interpreter> &l = _client->get_interpreters();
	for(list<model::interpreter>::iterator i = l.begin(); i != l.end(); 
	    ++i) {
		boost::shared_ptr<model::interpreter> tmp(&(*i), 
							  core::null_deleter());
		network::interpreter_send snd(get_impl()->clone(), tmp);
		rw += snd.get_string();
	}
	rw += get_footer();
	return rw;
}

